module.exports = app => {
    const { STRING, INTEGER, DATE, DECIMAL } = app.Sequelize;

    const Task = app.model.define('task', {
        id: {
            type: INTEGER,  //整型
            primaryKey: true,  //主键
            autoIncrement: true,  //自增
        },
        url: STRING(255),
        status: INTEGER,
        enter_id: INTEGER,
        type: INTEGER
    })
    return Task
}